package com.example.demo.dao;

import com.example.demo.domain.Troop;
import com.example.demo.support.CustomRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

@RepositoryRestResource(path = "troop")
public interface TroopRepository extends CustomRepository<Troop,Long> {
    Troop findByName(String name);
}
